﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cms/Admin.Master" AutoEventWireup="true"
    CodeBehind="CategoryMan.aspx.cs" Inherits="Aij1.Cms.CategoryMan" %>

<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Xpo.v13.1.Web, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Xpo" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="CT2" ContentPlaceHolderID="PH" runat="server">
    <div style="float:right">
        <dx:ASPxButton ID="BtnAddTop" runat="server" AutoPostBack="False" Text="新增顶级">
            <ClientSideEvents Click="function(s, e) {	tree.StartEditNewNode();}" />
        </dx:ASPxButton>
    </div>
    <dx:ASPxTreeList ID="ASPxTreeList1" runat="server" 
    AutoGenerateColumns="False" ClientInstanceName="tree"
        DataSourceID="XpoDataSource1" KeyFieldName="Oid" ParentFieldName="ParentId!Key"
        Width="100%">
        <Columns>
            <dx:TreeListTextColumn FieldName="Oid" VisibleIndex="0" Width="60px" 
                Caption="编号">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn FieldName="Title" VisibleIndex="1" Width="30%" 
                Caption="标题">
            </dx:TreeListTextColumn>
            <dx:TreeListTextColumn FieldName="Intro" VisibleIndex="2" Caption="简介" 
                Name="colIntro">
            </dx:TreeListTextColumn>
            <dx:TreeListComboBoxColumn Caption="显示方式" FieldName="AType" Name="colAType" 
                VisibleIndex="3" Width="80px">
            </dx:TreeListComboBoxColumn>
            <dx:TreeListTextColumn Caption="排序号" FieldName="OrderId" VisibleIndex="3" 
                Width="40px">
            </dx:TreeListTextColumn>
            <dx:TreeListCommandColumn Caption="操作" Name="colCateType" VisibleIndex="3" 
                Width="100px">
                <EditButton Visible="True">
                </EditButton>
                <NewButton Visible="True">
                </NewButton>
                <DeleteButton Visible="True">
                </DeleteButton>
            </dx:TreeListCommandColumn>
        </Columns>
        <SettingsBehavior AutoExpandAllNodes="True" />
        <SettingsSelection Enabled="True" />
        <SettingsEditing AllowNodeDragDrop="True" AllowRecursiveDelete="True" />
    </dx:ASPxTreeList>
    <dx:XpoDataSource ID="XpoDataSource1" runat="server" DefaultSorting="OrderId" 
        TypeName="Aij1.Model.A_Category">
    </dx:XpoDataSource>
</asp:Content>
